package com.yjz.designpattern.strategy_pattern.strategy;

import com.yjz.designpattern.strategy_pattern.model.LaunchPayCommand;
import com.yjz.designpattern.strategy_pattern.model.LaunchPayResultDo;
import com.yjz.designpattern.strategy_pattern.model.OrderLaunchPaymentDo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author: yuanjinzhong
 * @date: 2022/10/12 7:38 PM
 * @description: 普通预付+部分预付
 */
@Service
@Slf4j
public class NormalPrePayLaunchPayStrategy extends LaunchPayStrategy {


  @Override
  protected void check(LaunchPayCommand launchPayCommand, OrderLaunchPaymentDo orderLaunchPayment) {

  }

  @Override
  public boolean support(CashierBizTypeEnum bizType) {
    return CashierBizTypeEnum.NORMAL_PRE_PAY.equals(bizType);
  }

  @Override
  protected LaunchPayResultDo launchPay(LaunchPayCommand launchPayCommand, OrderLaunchPaymentDo orderLaunchPaymentDo) {
    return null;
  }

  @Override
  protected Map<String, Object> riskCheckForLunchPayment(LaunchPayCommand launchPayCommand) {
    return null;
  }


}
